<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

	<link rel="stylesheet" type="text/css" href="../resources/cola-ui/semantic.css">
	<link rel="stylesheet" type="text/css" href="../resources/cola-ui/cola.css">
	<link rel="stylesheet" type="text/css" href="../resources/demo.css">
	<title>控件定义</title>
	<script src="../resources/jquery-2.1.3.js"></script>
	<script src="../resources/cola-ui/3rd.js"></script>
	<script src="../resources/cola-ui/semantic.js"></script>
	<script src="../resources/cola-ui/cola.js"></script>
	<script src="../resources/cola-ui/i18n/zh/cola.js"></script>
	<script type="text/javascript">
		cola(function (model) {
			var fragment = cola.xRender([
				{
					tagName: "input",
					type: "checkbox",
					value: true
				},
				{
					tagName: "span",
					content: [
						{
							"c-bind": "name"
						},
						{
							tagName: "c-button",
							caption: "Test",
							click: function() {
								alert(34769324769);
							}
						},
						{
							tagName: "c-input",
							bind: "name",
							postOnInput: true
						}
					]
				}
			]);
			document.body.appendChild(fragment);
		});
	</script>
</head>
<body style="padding: 1em">


</body>
</html>
